package com.nuanshui.heatedloan.service.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;
import org.springframework.context.annotation.ImportResource;
import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import org.springframework.web.client.RestOperations;
import org.springframework.web.client.RestTemplate;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@Configuration
@EnableTransactionManagement
@ImportResource({ "classpath:/META-INF/applicationContext-service.xml"})
public class ServiceConfig {

	@Bean
	public RestOperations restTemplate() {
		RestTemplate ret = new RestTemplate();
		return ret;
	}
}